package com.lz.ht.dao;

import com.lz.ht.model.*;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

public interface RoomDao {
    int deleteByPrimaryKey(String rno);

    int insert(Room record);

    int insertSelective(Room record);

    Room selectByPrimaryKey(String rno);

    int updateByPrimaryKeySelective(Room record);

    int updateByPrimaryKey(Room record);

    List<Room> findListByMapLimit(HashMap<String,Object> hashMap);

    long findCountByMap(HashMap<String,Object> hashMap);

    void add(Room room);

    List<Roombook> findFreeRoomList(HashMap<String, Object> hashMap);

    long findFreeCountByMap(HashMap<String, Object> hashMap);

    DropInformation dropRoom(DropInformation dropInformation);

    void addbook(Book book);
}